class CreateTrips < ActiveRecord::Migration
  def self.up
    create_table :trips do |t|
      t.column :type,:string
      t.column :event_id,:integer

      t.column :ticket_category,:string
      t.column :ticket_number,:string
      t.column :occurs_on,:datetime
      t.timestamps
    end
    add_column :conventioners,:arrive_id,:integer
    add_column :conventioners,:revert_id,:integer
  end

  def self.down
    drop_table :trips
    remove_column :conventioners,:arrive_id
    remove_column :conventioners,:revert_id
  end
end
